package com.ht.shop.dao;

import com.ht.shop.pojo.TbGoods;
import com.ht.shop.pojo.TbGoodsKz;

import java.sql.SQLException;
import java.util.List;

public interface GoodsDao {
    long addGoodsKz(TbGoodsKz tbGoodsKz) throws SQLException;
    long addGoods(long Kzid) throws SQLException;
    int getGoodsCountByTypeId(int typeId);

    List<TbGoods> getGoodsByTypeIdAndLimit(int typeid, int start, int rows);

    /**
     * 根据id 查询商品的信息
     * @param id
     * @return
     */
    TbGoods getGoodById(int id);
}
